﻿<UserControl x:Class="SLVisifireApp.Bar2D3"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="350" Height="400" xmlns:vc="clr-namespace:Visifire.Charts;assembly=SLVisifire.Charts">
    <Grid x:Name="LayoutRoot" Background="White">
        <vc:Chart Theme="Theme1" AnimationEnabled="False" BorderBrush="Gray">

            <vc:Chart.PlotArea>
                <vc:PlotArea Background="#f1f1f1"/>
            </vc:Chart.PlotArea>
            <vc:Chart.Titles>
                <vc:Title Text="Monthly Production"/>
            </vc:Chart.Titles>
            <vc:Chart.AxesY>
                <vc:Axis>
                    <vc:Axis.Grids>
                        <vc:ChartGrid InterlacedColor="White"/>
                    </vc:Axis.Grids>
                </vc:Axis>
                <vc:Axis AxisType="Secondary" Suffix="%"/>
            </vc:Chart.AxesY>

            <vc:Chart.Legends>
                <vc:Legend EntryMargin="5" LabelMargin="5" />
            </vc:Chart.Legends>
            
            <vc:Chart.Series>
                <vc:DataSeries LegendText="Product A" RenderAs="Bar" AxisYType="Primary" Cursor="Hand">
                    <vc:DataSeries.DataPoints>
                        <vc:DataPoint AxisXLabel="Jan-08" YValue="220"/>
                        <vc:DataPoint AxisXLabel="Feb-08" YValue="450"/>
                        <vc:DataPoint AxisXLabel="Mar-08" YValue="550"/>
                        <vc:DataPoint AxisXLabel="Apr-08" YValue="650"/>
                        <vc:DataPoint AxisXLabel="May-08" YValue="620"/>
                        <vc:DataPoint AxisXLabel="Jun-08" YValue="446"/>
                    </vc:DataSeries.DataPoints>
                </vc:DataSeries>

                <vc:DataSeries LegendText="Product B" RenderAs="Bar" AxisYType="Secondary" Cursor="Hand">
                    <vc:DataSeries.DataPoints>
                        <vc:DataPoint YValue="8"/>
                        <vc:DataPoint YValue="14"/>
                        <vc:DataPoint YValue="20"/>
                        <vc:DataPoint YValue="32"/>
                        <vc:DataPoint YValue="28"/>
                        <vc:DataPoint YValue="16"/>
                    </vc:DataSeries.DataPoints>
                </vc:DataSeries>
            </vc:Chart.Series>
        </vc:Chart>
    </Grid>
</UserControl>
